</div>
    
    <!--body wrapper end--> 
    <div style="height:50px;"></div>
        <footer id="_pauseClick" style="position:fixed; z-index:10; display:none;">
            <a href="##" onClick="$.cookie($('#__MYSELF__').val(), 0, '/'); $(this).parent().hide();" class="next btn btn-default btn-sm">不再显示</a>
            <a href="##" onClick="$.cookie($('#__MYSELF__').val(), 0, '/'); $(this).parent().hide();" class="next btn btn-success btn-sm">下一步</a>
        </footer>
  </div>
  <!-- main content end-->  
</section>
<!-- Placed js at the end of the document so the pages load faster --> 
<script src="__PUBLIC__/Intesys/AdminX/js/jquery-ui-1.9.2.custom.min.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/jquery-migrate-1.2.1.min.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/bootstrap.min.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/modernizr.min.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/jquery.nicescroll.js"></script> 

<script src="__PUBLIC__/Intesys/default/javascripts/select2.js" type="text/javascript"></script>
<!--easy pie chart--> 
<script src="__PUBLIC__/Intesys/AdminX/js/easypiechart/jquery.easypiechart.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/easypiechart/easypiechart-init.js"></script> 

<!--Sparkline Chart--> 
<script src="__PUBLIC__/Intesys/AdminX/js/sparkline/jquery.sparkline.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/sparkline/sparkline-init.js"></script> 

<!--icheck --> 
<script src="__PUBLIC__/Intesys/AdminX/js/iCheck/jquery.icheck.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/icheck-init.js"></script>


<!-- jQuery Flot Chart--> 
<script src="__PUBLIC__/Intesys/AdminX/js/flot-chart/jquery.flot.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/flot-chart/jquery.flot.tooltip.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/flot-chart/jquery.flot.resize.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/flot-chart/jquery.flot.pie.resize.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/flot-chart/jquery.flot.selection.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/flot-chart/jquery.flot.stack.js"></script> 
<script src="__PUBLIC__/Intesys/AdminX/js/flot-chart/jquery.flot.time.js"></script> 

<script src="__PUBLIC__/Intesys/AdminX/js/ios-switch/switchery.js"></script>
<script src="__PUBLIC__/Intesys/AdminX/js/ios-switch/ios-init.js"></script>

<!--<script src="__PUBLIC__/Intesys/AdminX/js/main-chart.js"></script> -->
<script src="__PUBLIC__/Js/jquery-ajaxlist.js"></script>
<!--common scripts for all pages-->

<script src="__PUBLIC__/Admin/js/artDialog/artDialog.source.js"></script>
<script src="__PUBLIC__/Admin/js/artDialog/plugins/iframeTools.source.js"></script>
<script src="/Public/Home/TemplateDefault/js/jquery.cookie.js"></script>
<link rel="stylesheet" type="text/css" href="/Public/Js/mobiscroll/css/mobiscroll.custom-2.5.2.min.css">

<script type="text/javascript" src="__PUBLIC__/Intesys/AdminX/js/bootstrap-wysihtml5/wysihtml5-0.3.0.js"></script>
<script type="text/javascript" src="__PUBLIC__/Intesys/AdminX/js/bootstrap-wysihtml5/bootstrap-wysihtml5.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Intesys/AdminX/js/bootstrap-wysihtml5/bootstrap-wysihtml5.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Intesys/AdminX/js/fuelux/css/tree-style.css"/>
<script src="__PUBLIC__/Intesys/AdminX/js/fuelux/js/tree.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Intesys/AdminX/js/jQuerySession.js"></script>


<script src="__PUBLIC__/Admin/js/My97DatePicker/WdatePicker.js"></script>
<script src="__PUBLIC__/Intesys/AdminX/js/Chart.min.js"></script>
<!--<script src="__PUBLIC__/Js/highcharts.src.js"></script>-->

<script src="__PUBLIC__/Intesys/AdminX/js/scripts.js"></script>


<!-- 手机上点击列表弹出操作选项 --> 
<script src="__PUBLIC__/Js/validform/Validform.js"></script> 
<script src="__PUBLIC__/Js/ThinkBox/jquery.ThinkBox.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/validform/style.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/ThinkBox/css/ThinkBox.css" media="all">
<script>

	$('.ui-datepicker-prev .ui-icon').css('text-indent','1px');

	$.datepicker.regional["zh-CN"] = { closeText: "关闭", prevText: "&#x3c;", nextText: "&#x3e;", currentText: "今天", monthNames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], monthNamesShort: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"], dayNames: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], dayNamesShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"], dayNamesMin: ["日", "一", "二", "三", "四", "五", "六"], weekHeader: "周", dateFormat: "yy-mm-dd", firstDay: 1, isRTL: !1, showMonthAfterYear: !0, yearSuffix: "年" }

                         

            $.datepicker.setDefaults($.datepicker.regional["zh-CN"]);
    $(document).ready(function(e) {
		
		//左边菜单状态
		$('#leftmenu .sub-menu-list a').each(function(index, element) {
            if(window.location.href.indexOf($(this).attr('href')) >= 0){
				$(this).parent('li').addClass('active');
				$(this).parent('li').parent('ul').parent('li').addClass('nav-active');
			}
        });
		
	
		$('.listajaxrequest').each(function(index, element) {
			$(this).click(function(e) {
				$('.listajaxrequest').parent().find('.listajaxrequest').removeClass('on');
				$(this).addClass('on');
                var url = $(this).attr('rel');
				$.cookie('loadIndexUrl', url, {path:'/'});
				updateList();
            });
            
        });
		
		
		
		
		
		
		<if condition="isMobile()">
		
		$('#pagetitle').html($('.pagetitle').text());
		
		
		
		
		
		
		</if>
		
		PageInit();
		
		
        showModal($('.OptionBoxBtn'));
    });
	//绑定删除事件
	function bindremovedata(){
		$('.deleteBtn').each(function(index, element) {
			$('.deleteBtn').removeClass('deleteBtn');
            $(this).click(function(e) {
				if(!confirm('您确定要删除当前记录吗？')){
				    return false;
				}
                var url = $(this).attr('rel');
				$.get(url, {}, function(data){
				    //移除元素
					//alert($(element).attr('removeElement'));
					setTimeout(function(){
						$($(element).attr('removeElement')).remove();
						//如果列表没有数据了，重新加载
						updateList();
						}, 500);
					hideLayer();
				}, 'json');
            });
        });
		
		//底部删除按钮
		$('#BottomOptionBox .BottomdeleteBtn').each(function(index, element) {
			$('#BottomOptionBox .BottomdeleteBtn').removeClass('BottomdeleteBtn');
            $(this).click(function(e) {
				if(!confirm('您确定要删除当前记录吗？')){
				    return false;
				}
                var url = $(this).attr('rel');
				$.get(url, {}, function(data){
				    //移除元素
					//alert($(element).attr('removeElement'));
					setTimeout(function(){
						$($(element).attr('removeElement')).remove();
						//如果列表没有数据了，重新加载
						updateList();
						}, 50);
					hideLayer();
				}, 'json');
            });
        });
		
	}
	//绑定模态框事件
	function showModal(element){
		element.click(function(e) {
			hideLayer();
            $.get($(this).attr('rel'), {}, function(html){
				$('.OptionBox .modal-body').html(html.tbody);
				$('.OptionBox .modal-header h3').html($('.OptionBox .OptionTitle').html());
				if($('.OptionBox .checkoutformsearch').length > 0){
					$('.OptionBox .checkoutformsearch input[type="text"]:eq(0)').focus();
					$('.OptionBox .modal-header .btn').removeClass('hidden');
					$('.OptionBox .modal-footer .btn').removeClass('hidden');
					$('.OptionBox .modal-header .btn').html($('.OptionBox .OptionBtn').html());
					$('.OptionBox .modal-footer .btn').html($('.OptionBox .OptionBtn').html());
					$('.OptionBox .modal-header .btn,.OptionBox .modal-footer .btn').click(function(e) {
						$(".checkoutformsearch:eq(0)").Validform({
							ajaxPost:true,
							tiptype:function(data,s){
								if(s.type == 1){
									$.ThinkBox.success(data,{'delayClose':0, 'close': '关闭'});
								}
							},
							datatype:{
								"text":function(gets,obj,curform,regxp){
									return true;
								},"image":function(gets,obj,curform,regxp){
									return true;
								},
								//如规则类型minNum的对象比当前对象大的话，则报错
								"minNum":function(gets,obj,curform,regxp){
									if($($(obj).attr('dataobj')).val()){
										if(Number($($(obj).attr('dataobj')).val())>Number($(obj).val())){
											return false;	
										}
									}
									return true;
								},
								//如规则类型maxNum的对象比当前对象小的话，则报错
								"maxNum":function(gets,obj,curform,regxp){
									if($($(obj).attr('dataobj')).val()){
										if(Number($($(obj).attr('dataobj')).val())<Number($(obj).val())||!$(obj).val()){
											return false;	
										}
									}
									return true;
								}
							},
							callback:function(data){
								//检测登录 
								$('.ThinkBox-close').trigger('click');
								if(data.status == 0){
									//$.ThinkBox.error(data.info,{'delayClose':200});
									//$.ThinkBox('hide');
									$.ThinkBox.error(data.info,{'delayClose':200}); 
								}else{
									//alert(data.info);
									$('.OptionBox .modal-header .close').trigger('click');
									//更新列表
									$('.DataList').html(data.tbody);
									$('.PagesBox').html(data.pages);
									//绑定分页事件
									PageInit();
								}
							}
						});console.log('error');
                        $('.OptionBox .checkoutformsearch').submit();
                    });
				}
				if($('.OptionBox form').length == 0){
					$('.OptionBox .modal-header .btn').addClass('hidden');
				}
				if($('.OptionBox .checkoutform').length > 0){
					$('.OptionBox .modal-header .btn').removeClass('hidden');
					$('.OptionBox .modal-footer .btn').removeClass('hidden');
					$('.OptionBox .modal-header .btn').html($('.OptionBox .OptionBtn').html());
					$('.OptionBox .modal-footer .btn').html($('.OptionBox .OptionBtn').html());
					$('.OptionBox .modal-header .btn,.OptionBox .modal-footer .btn').click(function(e) {
						
						$(".checkoutform:eq(0)").Validform({
							ajaxPost:true,
							tiptype:function(data,s){
								if(s.type == 1){
									$.ThinkBox.success(data,{'delayClose':0, 'close': '关闭'});
								}
							},
							datatype:{
								"text":function(gets,obj,curform,regxp){
									return true;
								},"image":function(gets,obj,curform,regxp){
									return true;
								},
								//如规则类型minNum的对象比当前对象大的话，则报错
								"minNum":function(gets,obj,curform,regxp){
									if($($(obj).attr('dataobj')).val()){
										if(Number($($(obj).attr('dataobj')).val())>Number($(obj).val())){
											return false;	
										}
									}
								},
								//如规则类型maxNum的对象比当前对象小的话，则报错
								"maxNum":function(gets,obj,curform,regxp){
									if($($(obj).attr('dataobj')).val()){
										if(Number($($(obj).attr('dataobj')).val())<Number($(obj).val())||!$(obj).val()){
											return false;	
										}
									}
								}
							},
							callback:function(data){
								//检测登录 
								$('.ThinkBox-close').trigger('click');
								if(data.status == 0){
									//$.ThinkBox.error(data.info,{'delayClose':200});
									//$.ThinkBox('hide');
									
									$.ThinkBox.error(data.info,{'delayClose':200}); 
								}else{
									//alert(data.info); 
									
									$('.OptionBox .modal-header .close').trigger('click');
									//更新列表
									updateList();
									/*$.get(window.location.href, {}, function(data){
										$('.DataList').html(data.tbody);
										$('.PagesBox').html(data.pages);
										//绑定分页事件
										PageInit();
									}, 'json');*/
								}
							}
						});

                        $('.OptionBox .checkoutform').submit();
                    });
				}
			}, 'json');
        });



	}
	
	function PageInit(){
		//列表鼠标经过
		/*$('.DataList .DataListItem').mouseenter(function(e) {
            $(this).addClass('on');
			
        });
		$('.DataList .DataListItem').mouseleave(function(e) {
            $(this).removeClass('on');
			
        });*/
		
		//$.cookie('loadIndexUrl', window.location.href, {path:'/'});
		
		//下拉框
			$(".PagesBox select").each(function(index, element) {
                element.onchange = function(){
					var url = $(this).val();
					$.get(url,{},function(data){
						$('.DataList').html(data.tbody);
						$('.PagesBox').html(data.pages);
						//绑定分页事件
						PageInit();
					},"json")
				}
            });
		
		
		
		
		
		$('.PagesBox').find('a').each(function(e) {
			var url = $(this).attr('href');
			$(this).attr('href', 'javascript:void(0);');
			$(this).attr('rel', url);
			$(this).click(function(e) {
                $.get(url, {}, function(data){
						$('.DataList').html(data.tbody);
						$('.PagesBox').html(data.pages);
						$.cookie('loadIndexUrl', url, {path:'/'});
						//绑定分页事件
						PageInit();
					}, 'json');
				});
            });
		
		BottomOptionBtnInit();
		bindscrollload();
		bindremovedata();
	}
	
	
	
	
	//绑定滚动加载
	function bindscrollload(){
		
		<if condition="isMobile()"> 
		
		$(window).scroll(function(){
		　　var scrollTop = $(this).scrollTop();
		　　var scrollHeight = $(document).height();
		　　var windowHeight = $(this).height();
		　　if(scrollTop + windowHeight == scrollHeight){
			   if($('.PagesBox .next').length > 0){
				   $('.loading').removeClass('hidden');
				   
			　　　　$.get($('.PagesBox .next').attr('rel'), {}, function(data){
					   $(data.tbody).appendTo('.DataList');
					   $('.PagesBox').html(data.pages);
					   $('.loading').addClass('hidden');
					   PageInit();
				   }, 'json');
				   $('.PagesBox .next').removeClass('next');
			   }
		　　}
		});
		</if>
	}
	
	
	//更新列表数据
	function updateList(){
		
		var html = '<div class="lockwindowlayout" style="overflow:hidden; height:0; padding:10px 0;"><div class="loader-inner line-scale" style="text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>.lockwindowlayout .line-scale{height:20px;}.lockwindowlayout .line-scale div{background:#5ec8ff; height:20px;}</style></div>';
		$('.lockwindowlayout').remove();
		$(html).insertBefore('.DataList');
		$('.lockwindowlayout').animate({'height':'40px'},10);
		$('.DataList').html('');
		$('.PagesBox').html('');
		$.get($.cookie('loadIndexUrl'), {}, function(data){
			$('.lockwindowlayout').remove();
			if(data.empty == 1){
				data.tbody += '<p class="" style="padding:10px 0; text-align:center;">暂无记录</p>';
				$('.PagesBox').html('');

			}
			$('.DataList').css({'opacity': 0});
			$('.DataList').html(data.tbody);
			$('.DataList').animate({'opacity': 1}, 300);
			$('.PagesBox').html(data.pages); 
			$('.lockwindowlayout').remove();
			//绑定分页事件
			PageInit();




			Switcheryinit();






			
		}, 'json');
	}
	
	
	
	function searchform(e){
		
		var html = '<div class="lockwindowlayout" style="overflow:hidden; height:0; padding:10px 0;"><div class="loader-inner line-scale" style="text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>.lockwindowlayout .line-scale{height:20px;}.lockwindowlayout .line-scale div{background:#5ec8ff; height:20px;}</style></div>';
		$('.lockwindowlayout').remove();
		$(html).insertBefore('.DataList');
		$('.lockwindowlayout').animate({'height':'40px'},10);
		$('.DataList').html('');
		$('.PagesBox').html('');
		
		
		
		
		$.ajax({
		url:$(e).attr('action'),
		type:'GET',
		dataType:"json",
		data:$(e).serialize(),
		success: function(data){
			$('.lockwindowlayout').remove();
			if(data.empty == 1){
				data.tbody += '<p class="" style="padding:10px 0; text-align:center;">暂无记录</p>';
				$('.PagesBox').html('');
				
			}
			$('.DataList').css({'opacity': 0});
			$('.DataList').html(data.tbody);
			$('.DataList').animate({'opacity': 1}, 300);
			$('.PagesBox').html(data.pages); 
			$('.lockwindowlayout').remove();
			//绑定分页事件
			PageInit();
			
			
			
			
			Switcheryinit();

		}
	});
	return false;
}
	
	
	
	
	//更新弹出窗口数据
	function updateWindowList(){
		var index=Number($(".aui_state_focus").attr('index'))-1;
		console.log(index);
		index=index>=1?index:1;
		var url=$(".aui_state_lock:last").attr('rel');
		var html = '<div class="lockwindowlayout" style="overflow:hidden; height:0; padding:10px 0;"><div class="loader-inner line-scale" style="text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>.lockwindowlayout .line-scale{height:20px;}.lockwindowlayout .line-scale div{background:#5ec8ff; height:20px;}</style></div>';
		$('.lockwindowlayout').remove();
		$(html).insertBefore('.WindowList');
		$('.lockwindowlayout').animate({'height':'40px'},10);
		$('.WindowList').html('');
		$('.WindowPagesBox').html('');
		$.get(url, {}, function(data){
			$('.lockwindowlayout').remove();
			if(data.empty == 1){
				data.tbody += '<p class="" style="padding:10px 0; text-align:center;">暂无记录</p>';
				$('.WindowPagesBox').html('');
			}
			$('.WindowList').css({'opacity': 0});
			$('.WindowList').html(data.tbody);
			$('.WindowList').animate({'opacity': 1}, 300);
			$('.WindowPagesBox').html(data.pages); 
			$('.lockwindowlayout').remove();
			//绑定分页事件
			PageInit();
		}, 'json');
	}
	
	function BottomOptionBtnInit(){
		
		<if condition="isMobile()">
		
		
		$('.DataListItem').each(function(index, element) {
			$(this).removeClass('DataListItem');
			$(this).click(function(e) {
				//解除滚动事件，防止窗口弹出后加载下一页
				$(window).unbind('scroll');
				$('.BottomOptionBox .Box').html($(this).find('.BottomOptionBtn').html());
				showModal($('.BottomOptionBox .OptionBoxBtn'));
				$('#BottomOptionBoxLayer').removeClass('hidden');
				$('.BottomOptionBox').animate({'bottom':'0px'},100);
				
				//删除
				bindremovedata();
			});
		});
		</if>
	}
	//隐蒧半透明层
	function hideLayer(){
		$('.BottomOptionBox').animate({'bottom':'-700px'},100);
		$('#BottomOptionBoxLayer').addClass('hidden');
	}

function allPrpos ( obj ) { 
  // 用来保存所有的属性名称和值 
  var props = "" ; 
  // 开始遍历 
  for ( var p in obj ){ // 方法 
  if ( typeof ( obj [ p ]) == " function " ){ obj [ p ]() ; 
  } else { // p 为属性名称，obj[p]为对应属性的值 
  props += p + " = " + obj [ p ] + " /t " ; 
  } } // 最后显示所有的属性 

 $('body').append(props);
}
function lockwindow(){
		<if condition="isMobile()">
		var html = '<div id="lockwindowlayout" style="background-color:rgba(255,255,255,0.2); position:fixed; bottom:0; top:0; left:0; right:0; z-index:20000000;"><div class="loader-inner line-scale" style="position:absolute;top:50%; width:100%; margin-top:-50px; text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>#lockwindowlayout .line-scale div{background:#5ec8ff;}.aui_state_focus{opacity:0;}</style></div>';
		$('body').append(html);
		</if>
	}


    

    function _openWindow(url, width, title, buttontitle, callback, source,cancel){
		var cancel=cancel||false;   //用于取消点击关闭窗口的方法
		var windowindex = 0;
		$(window).unbind("scroll");
		lockwindow();
		
		var lock = true;
		if(source != '' && $(source).length > 0){
				lock = false;
				width = 'auto';
			}
		var height = $(window).height() - 200;
		<if condition="isMobile()">
			width = '100%';
			lock = false;
			var height = $(window).height() - 45;
			</if>
		var mydialog = art.dialog.load(url, {
			button:[{
				
				  name: '不懂？点我！',
				  classname: "btn btn-sm btn-info data-introbtn",
				  callback: function () {
					  //引导教程
					  ///alert();
					  introJs('.aui_state_focus .aui_outer').setOptions({exitOnOverlayClick:false,prevLabel:'&larr; 上一步','nextLabel':'下一步 &rarr;','skipLabel':'跳过','doneLabel':'关闭'}).start();
					  
					  return false;
				  },
				  focus: false
			  
			}],
			
			init:function(){
			//打开窗口后隐藏其它不必要元素
			
			//alert($('.aui_content').html());
			if(source != '' && $(source).length > 0){
				//把窗口移到
				$(source).css({position: 'relative'});
				$(mydialog.DOM.outer[0]).parents('.aui_state_focus').addClass('source');
				//$(mydialog.DOM.outer[0]).parents('.aui_state_focus').width();
				$(mydialog.DOM.outer[0]).parents('.aui_state_focus').appendTo(source);
			}


			
			<if condition="isMobile()">
			var curr = new Date().getFullYear();
            var opt = {

            }

            opt.date = {preset : 'date'};
			opt.datetime = { preset : 'datetime', minDate: new Date(1992,3,10,9,22), maxDate: new Date(2114,7,30,15,44), stepMinute: 5  };
			opt.time = {preset : 'time'};
			opt.tree_list = {preset : 'list', labels: ['Region', 'Country', 'City']};
			opt.image_text = {preset : 'list', labels: ['Cars']};
			opt.select = {preset : 'select'};
		$('.datetimeinput').scroller('destroy').scroller($.extend(opt['datetime'], { theme: 'android-ics light', mode: 'scroller', display: 'bottom', lang: 'zh' }));
			
			</if>
			
			
			
			
			
			
			


			hideLayer();
			//return false;
			<if condition="isMobile()">
			$('#lockwindowlayout').remove();
			$(".auii_statei_focus").hide();
			
			$('.modal-shiftfix').addClass('hidden');
			$('body').addClass('padding0');
			$('.aui_state_focus').addClass('auii_statei_focus');
						
			
			
			$('.aui_state_focus .aui_close').text('').addClass('icon-angle-left');
			
			$(".aui_state_focus").css({"animationDuration":"0.3s"}).addClass("animated slideInLeft").one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
					//动画结束后可能有退场动作，通过判断是否有退场属性来执行
					$(".aui_state_focus").removeClass('animated slideInLeft');
				});
			$('.aui_state_focus').animate({'opacity':1},100);
			//插入按钮前要清空原来的按钮
			$('.auii_statei_focus .aui_titleBar button').remove();
			var okBtn = $('.auii_statei_focus .aui_buttons').html();
			$('.auii_statei_focus .aui_buttons').hide();
			$(okBtn).insertAfter('.aui_close');
			
			$('.auii_statei_focus .aui_titleBar button').each(function(index, element) {
                $(this).click(function(e){
                    $('.auii_statei_focus .aui_buttons button').eq(index).trigger('click');
                });
            });
			
				$('.aui_state_focus .aui_main').height($(window).height() - 50);
			
			 <else/>
			 
			 
			 $('.aui_state_focus').addClass('auii_statei_focus');
			if($('.aui_state_focus .aui_main').height() > $(window).height() - 100){
				$('.aui_state_focus .aui_main').height($(window).height() - 200);
				
				var niceScroll = $(".aui_state_focus .aui_main").niceScroll({styler:"fb",cursorcolor:"#65cea7", cursorwidth: '3', cursorborderradius: '0px', background: '#424f63', spacebarenabled:false, cursorborder: '0'});
				$(".aui_state_focus .aui_main").click(function(e) {
					$('#'+niceScroll.id).css('z-index', $('#'+niceScroll.id).css('z-index')*1+1);
                });
				
			}
			
			if((source != '' && $(source).length > 0)){
					
                       var sh = $(mydialog.DOM.outer[0]).parents('.aui_state_focus').parent().height();
					   $(mydialog.DOM.outer[0]).parents('.aui_state_focus').parent().children().addClass('hiddentemp');
						if(sh>$(window).height()-100){
							$(mydialog.DOM.outer[0]).find('.aui_main').height($(window).height() - 200);
						}
//                            $(mydialog.DOM.outer[0]).find('.aui_main').height(sh-160);
                       
					}
			
			
			if($(".auii_statei_focus [data-intro]").length == 0){
				$(".auii_statei_focus .data-introbtn").remove();
			}
			
			$.cookie("scroll_hidden",$(document).scrollTop())
			$(".sticky-header").css({overflow:'hidden', height:($(window).height())+'px'});
			$("html").getNiceScroll().remove();
			Switcheryinit();
			$(".icheck input").on('ifChecked', function(event){
			
			$(this).trigger('change');
			});
			
			$(".icheck input[type='checkbox']").on('ifUnchecked', function(event){ //如果不选中，点击后则为选中
			
			
			$(this).trigger('change');
			
			});
			
			$(function(){
				$('.aui_state_focus .square-red input').iCheck({
					checkboxClass: 'icheckbox_square-red',
					radioClass: 'iradio_square-red',
					increaseArea: '20%'
				});
				$('.aui_state_focus  .minimal-green input').iCheck({
					checkboxClass: 'icheckbox_minimal-green',
					radioClass: 'iradio_minimal-green',
					increaseArea: '20%' // optional
				});
				$('.minimal-red input').iCheck({
					checkboxClass: 'icheckbox_minimal-red',
					radioClass: 'iradio_minimal-red',
					increaseArea: '20%' // optional
				});
			});
			//$('.aui_state_focus').css('top',$('.aui_state_focus').css('top').replace('px', '')*1+41+'px');
			</if>
			
			//$('.auii_statei_focus').css({'top':'41px'});
			
			
			if(!(source != '' && $(source).length > 0)){
			    mydialog._reset();
			}
			var index = 0;
			if($.cookie('windowindex')){
				index = $.cookie('windowindex')*1 + 1;
			}
			$.cookie('windowindex', index, '/');
			//index ++;
			//alert(index);
			$(".aui_state_focus").attr("index", index);
			$(".aui_state_focus").attr('rel', url);
			$('.auii_statei_focus:not(.index)').addClass('index'+index);
			windowindex = 'index'+index;
			//$('.auii_statei_focus:not(.index)').addClass('index'+index);
			//$(mydialog.DOM.outer[0]).parent().addClass(windowindex);
			if($('.auii_statei_focus #requestfirst').length > 0){
				setTimeout(function(){introJs('.auii_statei_focus .aui_outer').setOptions({exitOnOverlayClick:false,prevLabel:'&larr; 上一步','nextLabel':'知道了 &rarr;','skipLabel':'跳过','doneLabel':'关闭'}).start();}, 500);
			}
			
			//var btnresettext = $(mydialog.DOM.outer[0]).find('.aui_footer .btn.btn-primary.btn-sm.btnreset:eq(0)').text();
			
			
			if(buttontitle == 'button'){
				 $('.auii_statei_focus .aui_titleBar button').html($('.auii_statei_focus .OptionBtn').html());
			 }if(title == ''){
				 $('.auii_statei_focus .aui_titleBar .aui_title').html($('.auii_statei_focus .OptionTitle').html());
			 }
			 
			 $('.datepicker').datepicker({ dateFormat: 'yy-mm-dd' });
			//alert();
			//alert(".index"+index+" .checkoutform:eq(0)");
			 $(mydialog.DOM.outer[0]).find(".checkoutform:eq(0)").Validform({
							ajaxPost:true,
							tiptype:function(msg, s, data){
								if(s.type == 1){
									$.ThinkBox.success('正在处理，请稍等……',{'delayClose':0,modal:false, 'close': '关闭',x:0,y:0,center:false,locate:['left','top'], show:['',0]});
									//$(mydialog.DOM.outer[0]).find('.aui_footer .btn.btn-primary.btn-sm.btnreset').text('正在处理');
									/*$.ThinkBox.success(data,{'delayClose':200, 'close': '关闭', show:['',0],hide:['',0], modal:true});*/
									//$.ThinkBox.success(data,{'delayClose':0, 'close': '关闭'});
								}
								if(s.type == 3){
								$.ThinkBox.error(msg,{'delayClose':500,modal:false, 'close': '关闭',x:0,y:0,center:false,locate:['left','top'], show:['',0]});
							}
							},
							datatype:{
								"text":function(gets,obj,curform,regxp){
									return true;
								},"image":function(gets,obj,curform,regxp){
									return true;
								},
								//如规则类型minNum的对象比当前对象大的话，则报错
								"minNum":function(gets,obj,curform,regxp){
									if($($(obj).attr('dataobj')).val()){
										if(Number($($(obj).attr('dataobj')).val())>Number($(obj).val())){
											return false;	
										}
									}
								},
								//如规则类型maxNum的对象比当前对象小的话，则报错
								"maxNum":function(gets,obj,curform,regxp){
									if($($(obj).attr('dataobj')).val()){
										if(Number($($(obj).attr('dataobj')).val())<Number($(obj).val())||!$(obj).val()){
											return false;	
										}
									}
								}
							},
							callback:function(data){

								
								//alert();
								//检测登录 
								$('.ThinkBox-close').trigger('click');
								console.log(data);
								if(data.status == 0){
									//$.ThinkBox.error(data.info,{'delayClose':200});
									//$.ThinkBox('hide');
									
									$.ThinkBox.error(data.info,{'delayClose':200}); 
								}else{
									//alert(data.info); 
									//alert(id);
									var close_ = true;
									if(callback != null){
										close_ = callback();
									}
									$.ThinkBox.success(data.info,{'delayClose':500,modal:false, 'close': '关闭',x:0,y:0,center:false,locate:['left','top'], show:['',0]});
									//$(mydialog.DOM.outer[0]).find('.aui_footer .btn.btn-primary.btn-sm.btnreset').text(btnresettext);
									//更新列表
									//updateList();
									if(close_ !== false){
										mydialog.close();
									}
									
								}
							}
						});
			
			
			
			
			
			 
		},width: width, height: 'auto',fixed:true,lock:lock,opacity:0.5,title:title,ok:function(){
			//if(cancel){return false;}
			//alert('.'+windowindex+' .checkoutform:eq(0)');
			$(mydialog.DOM.outer[0]).find('.checkoutform:eq(0)').submit();
			//alert($('.'+windowindex+" .checkoutform").html());
			if($(mydialog.DOM.outer[0]).find(".checkoutform").length > 0){
				return false;
			}else{
				if(callback != null){
					if(callback()=='false'){
						return false;	
					}
					mydialog.close(); 
					return false;
				}
			}
			
		},okVal:buttontitle,
		close:function(){
			//if(cancel){return false;}
			$(mydialog.DOM.outer[0]).parents('.aui_state_focus').parent().children().removeClass('hiddentemp');
			window.onload = function(){};
			$(mydialog.DOM.outer[0]).find(".aui_main").getNiceScroll().remove();
		
			
			if($(".auii_statei_focus").length > 1){
				$(".auii_statei_focus.index"+($(".aui_state_focus").attr("index")*1 - 1)).show().addClass("aui_state_focus");
			}else{
				
				
				$(".sticky-header").css({height:'auto'});
				$("html").niceScroll({styler:"fb",cursorcolor:"#65cea7", cursorwidth: '6', cursorborderradius: '0px', background: '#424f63', spacebarenabled:false, cursorborder: '0',  zindex: '1000'});
				$("html,body").animate({scrollTop:$.cookie("scroll_hidden")},100);
				$(".modal-shiftfix").removeClass("hidden");
				$("body").removeClass("padding0");
			}
			//bindscrollload();
		},cancel:function(){ if(cancel){return false;}}});
	}
	
	
	
	
	
	
	
	
	
	//更新指定列表
function updatetasklist(container, pagesbox, form){
	var html = '<div class="lockwindowlayout" style="overflow:hidden; height:0; padding:10px 0;"><div class="loader-inner line-scale" style="text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>.lockwindowlayout .line-scale{height:20px;}.lockwindowlayout .line-scale div{background:#5ec8ff; height:20px;}</style></div>';
	$('.lockwindowlayout').remove();
	$(html).insertBefore(container);
	$('.lockwindowlayout').animate({'height':'40px'},10);
	container.html('');
	pagesbox.html('');
	
	
	
	$.ajax({
		'url' : form.attr('action'),
		data:form.serialize(),
		dataType:"json",
		type:"GET",
		success: function(data){
			$('.lockwindowlayout').remove();
			if(data.empty == 1){
				
				container.html('');
				
			}
			container.css({'opacity': 0});
			container.html(data.tbody);
			container.animate({'opacity': 1}, 300);
			pagesbox.html(data.pages); 
			$('.lockwindowlayout').remove();
			//绑定分页事件
			PageInitBox(container, pagesbox);
			Switcheryinit();
		}
	});
	return false;
}

function PageInitBox(container, pagesbox){
	//下拉框
	pagesbox.find("select").each(function(index, element) {
		element.onchange = function(){
			var url = $(this).val();
			$.get(url,{},function(data){
				container.html(data.tbody);
				pagesbox.html(data.pages);
				//绑定分页事件
				PageInitBox(container, pagesbox);
			},"json")
		}
	});
	pagesbox.find('a').each(function(e) {
		var url = $(this).attr('href');
		$(this).attr('href', 'javascript:void(0);');
		$(this).attr('rel', url);
		$(this).click(function(e) {
			$.get(url, {}, function(data){
				container.html(data.tbody);
				pagesbox.html(data.pages);
				$.cookie('loadIndexUrl', url, {path:'/'});
				//绑定分页事件
				PageInitBox(container, pagesbox);
			}, 'json');
		});
	});

}

$('.affixelement').each(function(index, element) {
    $(element).affix({
   offset: {
	  top: $(element).attr('afftop'), bottom: function () {
		 return (this.bottom = 
			$('.bs-footer').outerHeight(true))
		 }
	  }
});
});
$(window).resize(function(e) {
    $('.affixelement').each(function(index, element) {
		$(this).width($(this).parent().width()*1);
		$(this).parent().css('height',$(this).outerHeight(true)+'px');
	});
});
$('.affixelement').each(function(index, element) {
    $(this).click(function(e) {
        $(this).parent().css('height',$(this).outerHeight(true)+'px');
    });
});

$(window).trigger('resize');

$('.header-section .toggle-btn').click(function(e) {
    $(window).trigger('resize');
});




</script>

<script src="__PUBLIC__/Js/intro/intro.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/intro/introjs.css">




<script>

$(document).ready(function(e) {
	//按下ctrl+Q 打开入门帮助
//	$.session.set('statue', false);
	$(document).keydown(function(event) {
//		var statue=$.session.get('statue');
//		if(!statue){
			if (event.ctrlKey && event.which == 81) {
				introJs().setOptions({'prevLabel':'&larr; 上一步','nextLabel':'知道了 &rarr;','skipLabel':'跳过','doneLabel':'关闭'}).start();
//				$.session.set('statue', true);
			}
//		}else{
//			$.session.set('statue', false);
//		}

	});

	 var setp = $.cookie($('#__MYSELF__').val());
	 //alert(setp);
     if(setp > 0){
		 $('#_pauseClick').show();
	    setTimeout(function(){
			var T = setInterval(function(){
				if($('.ajaxloading').length == 0){
					clearInterval(T);
					//$.cookie(window.location.href, 0 , '/');
					introJs().setOptions({'prevLabel':'&larr; 上一步','nextLabel':'知道了 &rarr;','skipLabel':'不再显示','doneLabel':'关闭'}).start().goToStep(setp).onexit(function(){
						$.cookie($('#__MYSELF__').val(), 0, '/');
						$('#_pauseClick').hide();
					});
				}
			},200);
		},200);
     }
});
</script>

<eq name="requestfirst" value="1">

<script>

	$(document).ready(function(e) {
     if($.cookie(window.location.href) > 0){
        setTimeout(function(){
			var T = setInterval(function(){
				if($('.ajaxloading').length == 0){
					
					clearInterval(T);
					introJs().setOptions({'prevLabel':'&larr; 上一步','nextLabel':'知道了 &rarr;','skipLabel':'跳过','doneLabel':'关闭'}).start();
				}
			},200);
		},200);
    }});
</script>
</eq>





<input type="hidden" id="__MYSELF__" value="{$__self__}"> 